package com.example.BlockChain.dao;

import com.example.BlockChain.entity.Timing;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TimingDao {
    public void updateAcceptTime(Timing timing);

    public void saveOrderId(Timing newtiming);
    public String selectTiming(String orderid);

    /**
     * 根据订单ID查询商家接单时间
     *
     * @param orderId 订单ID
     * @return 商家接单时间
     */
    String selectAcceptTime2(@Param("orderId") String orderId);
}
